Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/vvd-fonts

Package Overview
Dependencies
Maintainers
14
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/vvd-fonts

Vivid fonts initialisation service

  • 0.11.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
473
decreased by-42.81%
Maintainers
14
Weekly downloads
 
Created
Source

Vivid Fonts

As part of the One Vonage unified branding and look'n'feel experience, we are providing a common Web fonts set. Our font loading service will load a variable fonts for any supporting platform, while falling back to the static fonts on the non-supporting ones.

There are two API approaches to init the fonts in your application:

  • JS/TS driven - import our module and invoke the API method
  • CSS driven - link a single CSS stylesheet to rule them all

See more details about each of those approaches down below.

To use Vivid fonts in your application please apply the following CSS rule:

body {
	font-family: var(--vvd-font-family-spezia);
}

Support matrix
ChromeFirefoxEdgeOperaSafari
regular fonts
variable fonts✔ 62+✔ 62+✔ 17+✔ 49+✔ 11+

JS/TS driven initialization

If the JS/TS approach is taken, you should follow the example below:

import fonts from '@vonage/vvd-fonts';
...
fonts.init().then(() =>
	//	do post init stuff here
);

Note: this approach won't block site's contents rendering, so you'll most likely to experience FOUC behaviour unless employing some kind of loading vilon on start up.


CSS driven initialization

Link the vvd-fonts.css from the location you've put our library in. It is highly advised to link this resource early in the application lifecycle (for example, up in the head).

<link rel="stylesheet" href="@vonage/vvd-fonts/vvd-fonts.css" />

Note: this approach will block the site's contents rendering until the fonts are fully fetched, yet no FOUC (flash of unstyled content) expected.

FAQs

Package last updated on 29 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc